<%@ Page Title="Manage my Account | @TBD.CO.IN" Language="C#" MasterPageFile="~/TBDHome.Master" Theme="HomeTheme"
    AutoEventWireup="true" CodeBehind="PropertyList.aspx.cs" Inherits="OPMS_V1.Public.ManageAds.PropertyList" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="20pt" ForeColor="#B32E43"
        Style="z-index: 2; left: 50px; top: 220px; position: absolute" Text="Manage my Account"></asp:Label>
    <cc1:TabContainer ID="TabContainer1" runat="server" Style="z-index: 2; left: 60px;
        top: 300px; position: absolute" Font-Size="Medium" EnableTheming="true" Width="989px" Height="740px">
        <cc1:TabPanel ID="GeneralInformation" runat="server" Font-Bold="True">
            <HeaderTemplate>
                My Ads
            </HeaderTemplate>
            <ContentTemplate>
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="20pt" ForeColor="#B32E43"
                    Style="z-index: 2; left: 5px; top: 45px; position: absolute" Text="My Ads"></asp:Label>
                <asp:Label ID="lblWelcome" runat="server" Font-Bold="True" Style="z-index: 1; left: 82px;
                    top: 50px; position: absolute"></asp:Label>
                <asp:Label ID="Label2" runat="server" Style="z-index: 1; left: 5px; top: 90px; position: absolute"
                    Text="From here you can place a new ad, manage your existing ads "></asp:Label>
                <asp:Button ID="btnNewAd" runat="server" Style="z-index: 1; left: 814px; top: 90px;
                    position: absolute" Text="Create New Ad" CssClass="buttonStyling" 
                    onclick="btnNewAd_Click" />
                <asp:Panel ID="pnlTop" runat="server" Style="z-index: 1; left: 5px; top: 140px; position: absolute;
                    height: 46px; width: 973px">
                    <asp:Panel ID="pnlHomeDetails" runat="server" Style="z-index: 1; left: 1px; top: 44px;
                        position: absolute; height: 195px; width: 972px">
                        <asp:Panel ID="pnlHome" runat="server" Style="z-index: 1; left: 3px; top: 70px; position: absolute;
                            height: 226px; width: 972px">
                            <asp:GridView ID="grdPropertyList" runat="server" AllowPaging="True"
                                AutoGenerateEditButton="True" Caption="Property List" CellPadding="4" ForeColor="#333333"
                                PageSize="4" Style="z-index: 1; left: 0px; top: -30px; height: 200px; width: 973px"
                                Height="148px" OnPageIndexChanging="grdPropertyList_PageIndexChanging" 
                                onrowediting="grdPropertyList_RowEditing" 
                                onrowdeleting="grdPropertyList_RowDeleting">
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </asp:Panel>
                    </asp:Panel>
                    <cc1:CollapsiblePanelExtender ID="pnlHomeDetails_CollapsiblePanelExtender" runat="server"
                        Enabled="True" TargetControlID="pnlHomeDetails" CollapseControlID="pnlHeading"
                        SuppressPostBack="True" ExpandControlID="pnlHeading" ExpandedImage="~/Images/collapse_blue.jpg"
                        CollapsedImage="~/Images/expand_blue.jpg" ImageControlID="Image5">
                    </cc1:CollapsiblePanelExtender>
                    <asp:Panel ID="pnlShow" runat="server" Style="z-index: 1; left: 0px; top: 0px; position: absolute;
                        height: 40px; width: 976px; margin-bottom: 0px;">
                        <asp:Panel ID="pnlHeading" runat="server" Style="z-index: 1; left: 0px; top: 0px;
                            position: absolute; height: 42px; width: 973px" CssClass="collapsePanelHeader">
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="14pt" ForeColor="#A73D4E"
                                Style="z-index: 1; left: 40px; top: 0px; position: absolute" Text="Completed Ads: "></asp:Label>
                            <asp:Label ID="Label4" runat="server" Style="z-index: 1; left: 30px; top: 23px; position: absolute"
                                Text="These are the Ads which are completed or has been finished."></asp:Label>
                            <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/expand_blue.jpg" Style="z-index: 1;
                                left: 3px; top: 5px; position: absolute; height: 18px; width: 21px" />
                            <asp:Label ID="lblCompleteCount" runat="server" Font-Bold="True" ForeColor="#9E4956"
                                Style="z-index: 1; left: 171px; top: 3px; position: absolute"></asp:Label>
                        </asp:Panel>
                    </asp:Panel>
                </asp:Panel>
                <asp:Panel ID="pnlTopIncomplete" runat="server" Style="z-index: 1; left: 3px; top: 555px;
                    position: absolute; height: 80px; width: 976px">
                    <asp:Panel ID="pnlIncompleteHomedetails" runat="server" Style="z-index: 1; left: 0px;
                        top: 48px; position: absolute; height: 226px; width: 972px">
                        <asp:Panel ID="pnlHomeIncomplete" runat="server" Style="z-index: 1; left: 3px; top: 70px;
                            position: absolute; height: 226px; width: 972px">
                            <asp:GridView ID="grdIncomplete" runat="server" AllowPaging="True"
                                AutoGenerateEditButton="True" Caption="Property List" CellPadding="4" ForeColor="#333333"
                                PageSize="4" Style="z-index: 1; left: 3px; top: -73px; position: absolute; height: 100px;
                                width: 973px" onpageindexchanging="grdIncomplete_PageIndexChanging" 
                                onrowediting="grdIncomplete_RowEditing">
                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </asp:Panel>
                    </asp:Panel>
                    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" Enabled="True"
                        TargetControlID="pnlIncompleteHomedetails" CollapseControlID="pnlIncompleteHeading"
                        SuppressPostBack="True" ExpandControlID="pnlIncompleteHeading" ExpandedImage="~/Images/collapse_blue.jpg"
                        CollapsedImage="~/Images/expand_blue.jpg" ImageControlID="Image1">
                    </cc1:CollapsiblePanelExtender>
                    <asp:Panel ID="pnlShowIncomplete" runat="server" Style="z-index: 1; left: -12px; top: -44px;
                        position: absolute; height: 40px; width: 973px; margin-bottom: 0px;">
                        <asp:Panel ID="pnlIncompleteHeading" runat="server" Style="z-index: 1; left: 5px;
                            top: 1px; position: absolute; height: 42px; width: 976px" 
                            CssClass="collapsePanelHeader">
                            <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="14pt" ForeColor="#A73D4E"
                                
                                Style="z-index: 1; left: 42px; top: 4px; position: absolute; height: 21px;" 
                                Text="Incompleted Ads: "></asp:Label>
                            <asp:Label ID="Label6" runat="server" Style="z-index: 1; left: 30px; top: 23px; position: absolute"
                                Text="These are the Ads which are incomplete."></asp:Label>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/expand_blue.jpg" Style="z-index: 1;
                                left: 14px; top: 5px; position: absolute; height: 18px; width: 21px" />
                        </asp:Panel>
                    </asp:Panel>
                </asp:Panel>
            </ContentTemplate>
        </cc1:TabPanel>
        <cc1:TabPanel ID="Personal" runat="server">
            <HeaderTemplate>
                Personal Information
            </HeaderTemplate>
            <ContentTemplate>
                <asp:Panel ID="pnlRegistration" runat="server" 
        Style="z-index: 3; left: 0px; top: 42px; position: absolute; height: 977px; width: 950px">
        <asp:Label ID="lblRequired" runat="server" Font-Bold="True" Font-Size="10pt" 
            ForeColor="Red" Style="z-index: 1; left: 15px; top: 35px; position: absolute" 
            Text="Please enter all the required details."></asp:Label>
        <asp:Label ID="lblRegistrationDetails" runat="server" Font-Bold="True" 
            Font-Size="20pt" ForeColor="#B32E43" Style="z-index: 3; left: 7px;
                        top: 1px; position: absolute; height: 31px; width: 245px;" 
            Text="Personal Details"></asp:Label>
        <asp:Panel ID="pnlLoginDetails" runat="server" Style="z-index: 1; left: -2px; top: 50px;
                        position: absolute; height: 159px; width: 950px">
            <asp:Panel ID="pnlRegister" runat="server" BackColor="#CECECE" 
                BorderColor="Black" Style="z-index: 1; left: 20px; top: 25px; position: absolute; height: 45px;
                            width: 950px">
                <asp:Label ID="lblRegAccountName" runat="server" Font-Bold="True" 
                    Font-Size="10pt" Style="z-index: 1; left: 10px; top: 14px; position: absolute" 
                    Text="Account Login: *"></asp:Label>
                <asp:Label ID="lblRegisterError" runat="server" Font-Size="10pt" 
                    ForeColor="#FF3300" 
                    Style="z-index: 1; left: 12px; top: 572px; position: absolute" 
                    Text="Unable to update. Please try after some time."></asp:Label>
                <asp:Label ID="lblRegAccount" runat="server" 
                    style="z-index: 1; left: 160px; top: 10px; position: absolute; height: 20px; width: 198px"></asp:Label>
            </asp:Panel>
            <asp:Label ID="lblLoginDetails" runat="server" Font-Bold="True" 
                ForeColor="IndianRed" Style="z-index: 1; left: 20px; top: 0px;
                            position: absolute" Text="Login Details"></asp:Label>
        </asp:Panel>
        <asp:Panel ID="pnlExists" runat="server" Style="z-index: 1; left: 1px; top: 156px;
                        position: absolute; height: 461px; width: 950px">
            <asp:Panel ID="pnlContactDetails" runat="server" Style="z-index: 1; left: 18px; top: 171px;
                            position: absolute; height: 83px; width: 950px">
                <asp:Label ID="lblContactDetails" runat="server" Font-Bold="True" 
                    ForeColor="IndianRed" 
                    Style="z-index: 1; left: 0px; top: 0px; position: absolute; width: 110px;" 
                    Text="Contact Details"></asp:Label>
                <asp:Panel ID="pnlPersonal0" runat="server" BackColor="#BDBDBD" 
                    Style="z-index: 1;
                                left: 0px; top: 20px; position: absolute; height: 59px; width: 950px">
                    <asp:Label ID="Label12" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 10px; position: absolute" Text="Phone *"></asp:Label>
                    <asp:TextBox ID="txtPhone" runat="server" Style="z-index: 1; left: 150px; top: 10px;
                                    position: absolute; width: 168px"></asp:TextBox>
                </asp:Panel>
            </asp:Panel>
            <asp:Panel ID="pnlPersonalDetails" runat="server" Style="z-index: 1; left: 16px;
                            top: 4px; position: absolute; height: 153px; width: 950px">
                <asp:Label ID="lblPersonalDetails" runat="server" Font-Bold="True" 
                    ForeColor="IndianRed" 
                    Style="z-index: 1; left: 0px; top: 0px; position: absolute" 
                    Text="Personal Details"></asp:Label>
                <asp:Panel ID="pnlPersonal" runat="server" BackColor="#BDBDBD" 
                    Style="z-index: 1;
                                left: 0px; top: 20px; position: absolute; height: 131px; width: 950px">
                    <asp:Label ID="Label7" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 10px; position: absolute" Text="First Name *"></asp:Label>
                    <asp:Label ID="Label9" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 41px; position: absolute" Text="Last Name *"></asp:Label>
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 68px; position: absolute" Text="Sex: *"></asp:Label>
                    <asp:RadioButton ID="rdbMale" runat="server" Checked="True" Font-Bold="True" 
                        GroupName="Sex" 
                        Style="z-index: 1; left: 150px; top: 67px; position: absolute; height: 21px;" 
                        Text="Male" />
                    <asp:RadioButton ID="rdbFemale" runat="server" Font-Bold="True" GroupName="Sex" Style="z-index: 1;
                                    left: 221px; top: 68px; position: absolute" Text="Female" />
                    <asp:TextBox ID="txtFirstName" runat="server" Style="z-index: 1; left: 150px; top: 10px;
                                    position: absolute; width: 168px"></asp:TextBox>
                    <asp:TextBox ID="txtLastName" runat="server" Style="z-index: 1; left: 150px; top: 40px;
                                    position: absolute; width: 167px"></asp:TextBox>
                    
                    <asp:RegularExpressionValidator ID="regexLastName" runat="server" 
                        ControlToValidate="txtLastName" ErrorMessage="Please enter valid last name" 
                        Font-Bold="True" Font-Size="10pt" 
                        Style="z-index: 1; left: 330px; top: 44px; position: absolute" 
                        ValidationExpression="^[a-zA-Z]*$"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="regexFirstName" runat="server" 
                        ControlToValidate="txtFirstName" ErrorMessage="Please enter valid First name" 
                        Font-Bold="True" Font-Size="10pt" 
                        Style="z-index: 1; left: 330px; top: 16px; position: absolute" 
                        ValidationExpression="^[a-zA-Z]*$"></asp:RegularExpressionValidator>
                    
                </asp:Panel>
            </asp:Panel>
            <asp:RegularExpressionValidator ID="regexPhone" runat="server" 
                ControlToValidate="txtPhone" 
                ErrorMessage="Phone Number must be in: 0493 - 3227341 or 0493 3227341 or 493 3227341" 
                Font-Bold="True" Font-Size="10pt" Style="z-index: 1; left: 350px; top: 205px;
                            position: absolute" 
                ValidationExpression="^0{0,1}[1-9]{1}[0-9]{2}[\s]{0,1}[\-]{0,1}[\s]{0,1}[1-9]{1}[0-9]{6}$"></asp:RegularExpressionValidator>
            <asp:Panel ID="pnlAddress" runat="server" Style="z-index: 1; left: 21px; top: 265px;
                            position: absolute; height: 179px; width: 950px">
                <asp:Label ID="Label13" runat="server" Font-Bold="True" ForeColor="#BC6262" Style="z-index: 1;
                                left: 0px; top: 0px; position: absolute" 
                    Text="Address Details"></asp:Label>
                <asp:Panel ID="pnlAddressDetails" runat="server" BackColor="#AFAFAF" 
                    Style="z-index: 1;
                                left: 0px; top: 20px; position: absolute; height: 162px; width: 950px">
                    <asp:Label ID="Label134" runat="server" Font-Bold="True" Style="z-index: 2; left: 10px;
                                    top: 22px; position: absolute" Text="Street Num. *"></asp:Label>
                    <asp:Label ID="Label132" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 51px; position: absolute" Text="Street Name *"></asp:Label>
                    <asp:Label ID="Label143" runat="server" Font-Bold="True" Style="z-index: 2; left: 10px;
                                    top: 82px; position: absolute" Text="PostCode *"></asp:Label>
                    <asp:Label ID="Label153" runat="server" Font-Bold="True" Style="z-index: 1; left: 10px;
                                    top: 139px; position: absolute" Text="State: *"></asp:Label>
                    <asp:Label ID="Label163" runat="server" Font-Bold="True" Style="z-index: 2; left: 10px;
                                    top: 108px; position: absolute" Text="Area: *"></asp:Label>
                    <asp:TextBox ID="txtStreetNum" runat="server" Style="z-index: 2; left: 150px; top: 20px;
                                    position: absolute; width: 168px"></asp:TextBox>
                    <asp:TextBox ID="txtStreetName" runat="server" Style="z-index: 2; left: 150px; top: 50px;
                                    position: absolute; width: 167px"></asp:TextBox>
                    <asp:TextBox ID="txtArea" runat="server" Style="z-index: 2; left: 150px; top: 108px;
                                    position: absolute; width: 168px"></asp:TextBox>
                    <asp:DropDownList ID="ddlState" runat="server" Style="z-index: 2; left: 150px; top: 135px;
                                    position: absolute; width: 173px">
                        <asp:ListItem>Jammu Kashmir</asp:ListItem>
                        <asp:ListItem>Haryana</asp:ListItem>
                        <asp:ListItem>Himachal Pradesh</asp:ListItem>
                        <asp:ListItem>Delhi</asp:ListItem>
                        <asp:ListItem>Uttar Pradesh</asp:ListItem>
                        <asp:ListItem>Bihar</asp:ListItem>
                        <asp:ListItem>Jharkhand</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtPostCode" runat="server" Style="z-index: 2; left: 150px; top: 80px;
                                    position: absolute; width: 167px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="regexArea" runat="server" 
                        ControlToValidate="txtArea" ErrorMessage="Please enter valid Area" 
                        Font-Bold="True" Font-Size="10pt" Style="z-index: 1;
                                    left: 350px; top: 112px; position: absolute" 
                        ValidationExpression="^[a-zA-Z0-9\s,-.]*$"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="regexPostCode" runat="server" 
                        ControlToValidate="txtPostCode" ErrorMessage="Please enter valid PostCode" 
                        Font-Bold="True" Font-Size="10pt" 
                        Style="z-index: 1; left: 350px; top: 84px; position: absolute" 
                        ValidationExpression="^[0-9]{6}"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="regexStreetName" runat="server" 
                        ControlToValidate="txtStreetName" ErrorMessage="Please enter valid Street name" 
                        Font-Bold="True" Font-Size="10pt" 
                        Style="z-index: 1; left: 350px; top: 55px; position: absolute" 
                        ValidationExpression="^[a-zA-Z0-9\s,]*$"></asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="regexStreetNum" runat="server" 
                        ControlToValidate="txtStreetNum" ErrorMessage="Please enter valid StreetNum" 
                        Font-Bold="True" Font-Size="10pt" 
                        Style="z-index: 1; left: 350px; top: 24px; position: absolute" 
                        ValidationExpression="^[0-9a-zA-Z\s-.]*$"></asp:RegularExpressionValidator>
                </asp:Panel>
            </asp:Panel>
        </asp:Panel>
        <asp:Button ID="btnUpdate" runat="server" CssClass="buttonStyling" 
            onclick="btnUpdate_Click" Style="z-index: 1; left: 691px; top: 643px;
                        position: absolute; width: 104px;" Text="Update Details" />
        <asp:CheckBox ID="chkTerms" runat="server" Style="z-index: 1; left: 20px; top: 644px;
                        position: absolute" 
            Text="I have read and accepted the Privacy Policy and Conditions of Use." />
    </asp:Panel>
            </ContentTemplate>
        </cc1:TabPanel>
    </cc1:TabContainer>
</asp:Content>
